<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

return [
    //自测使用
    'zcurl/:c/:a' => ['wechat/index/zcurl', ['method' => 'get']],
    'cooperation/list'=>'wechat/Cooperation/institutions',
    'cooperation/:id'=>'wechat/Cooperation/detail',
    
    'getqrcode-<phone>-<b_id>' => ['wechat/index/getQrcode', ['method' => 'get']],
    'getqrcode/:type/:partner_no/:order_price/:phone/:order_no' => ['wechat/index/getQrcode', ['method' => 'get']],
    'getqrcode/:type/:partner_no' => ['wechat/index/getQrcode', ['method' => 'get']],
    //模板显示
    ':d/:n' => ['wechat/index/showtpl', ['method' => 'get']],
    //接口api
    'wechat.api' => ['wechat/index/api', ['method' => 'post']],
    //协议地址
    'agreement-<type>' => ['wechat/fund/agreement', ['method' => 'get']],
    
    //首页
    '/' => ['wechat/index/index', ['method' => 'get']],

    'user.openid' => ['wechat/wechat/openId', ['method' => 'get']],
    'pay.openid' => ['wechat/wechat/getOpenId', ['method' => 'get']],
    'get.token' => ['wechat/wechat/getTokenId', ['method' => 'get']],
    'token' => ['wechat/wechat/getToken', ['method' => 'get']],
    
    'jsupdatebank.api' => ['wechat/JinshangFund/updateBank', ['method' => 'get']],
	
    'test.api' => ['wechat/index/test', ['method' => 'get']],
    'logout' => ['wechat/Login/logout', ['method' => 'get']],
	'testss' => 'wechat/Users/testss',
    //保险签到
    'userSign' => 'wechat/Users/sign',
    'insuranceState' => 'wechat/Users/insuranceState',
    //获取临时openid
    'order.openid' => ['wechat/wechat/getOrderOpenId', ['method' => 'get']],

    //首付获取openid
    'product.openid' => ['wechat/wechat/getProductOpenId', ['method' => 'get']],

	//测试环境获取openid，请勿使用
	'test.openid' => ['wechat/wechat/getTestOpenId', ['method' => 'get']],
	//测试环境获取openid，请勿使用
	'test1.openid' => ['wechat/wechat/getTestOpenIds', ['method' => 'get']],

	//获取收款码openid
	'getReceiptOpenId' => ['wechat/wechat/getReceiptOpenId', ['method' => 'get']],

    //微信推送模版-机构充值成功
    'testSendWeChat'=> 'wechat/IcbcPay/testSendWeChat',

    //微信推送模版-用户支付成功
    'userSendWeChat'=> 'wechat/IcbcPay/userSendWeChat',

    /*聚合---------------------------------------支付*/
    /*获取位置信息*/
    'location'	    =>'wechat/Pay/getLocation',
    'productPay'    =>'wechat/IcbcPay/productPay', // 用户扫码进入课程列表页
	'productSelect'    =>'wechat/IcbcPay/productSelect', // 扫码进入机构课程选择页面(统一收款码)
    'productPayNext'    =>'wechat/IcbcPay/productPayNext', // 待支付
    'orderPay'  =>'wechat/IcbcPay/orderPay', // 支付订单
    'payIndex'	=>'wechat/IcbcPay/payIndex', // 聚合支付入口页面
    'pays.openid'   => ['wechat/Pay/getOpenId', ['method' => 'get']], //获取openid

    'confirmOrder'  =>'wechat/IcbcPay/confirmOrder', // 登录后确认订单页
    'pay/'	        =>'wechat/IcbcPay/pay',//选择支付页
    'payInsurance/'	=>'wechat/IcbcPay/payInsurance',//选择支付页

    'failPayDetail'	=>'wechat/IcbcPay/failPayDetail', // 支付失败,待支付订单详情页
    'succPayDetail'	=>'wechat/IcbcPay/succPayDetail', // 支付成功订单详情页
    'paySuccess'	=>'wechat/IcbcPay/paySuccess', // 支付成功、失败页
    'userCenter'	=>'wechat/IcbcPay/userCenter', // 我的，个人中心
    'cancelOrder'	=>'wechat/IcbcPay/cancelOrder', // 取消订单
    'partnerRegister'=>'wechat/Register/partnerRegister', // 机构注册

    //收款二维码
    'receiptinfo' => 'wechat/IcbcPay/getOpenId',

    //微信推送模版-聚合支付
    'sendWeChatInfo'=> 'wechat/IcbcPay/sendWeChatInfo',
    //微信推送模版-机构充值成功
    'partnerSendWeChat'=> 'wechat/IcbcPay/partnerSendWeChat',
    //用户扫码进入登录->课程
    'productinfo'    =>'wechat/IcbcPay/productLogin', // 用户扫码进入课程列表页
    'getPeriodList' => 'wechat/Product/getPeriodList',
    'productBill' => 'wechat/Secoo/productBill',
    'selectBank' => 'wechat/Secoo/selectBank',

    //合同渲染
    'servicePartner' => 'wechat/Cooperation/servicePartner',
    //合同框架协议
    'serviceContract' => 'wechat/Cooperation/serviceContract',
    //蚂蚁账单管理合作协议
    'serviceContractMY' => 'wechat/Cooperation/serviceContractMY',
    //持牌金融机构学费账单管理协议
    'serviceContractFee' => 'wechat/Cooperation/serviceContractFee',
    //课程协议
    'serviceContractPro' => 'wechat/Cooperation/serviceContractPro',
    //工蚂付特约商户服务协议
    'serviceContractGmf' => 'wechat/Cooperation/serviceContractGmf',

	//协议付认证
	'authentication' => 'wechat/Cooperation/authentication',
	'yeepay/' => 'wechat/IcbcPay/yeePay',//选择支付页
	'insuranceInfo/' => 'wechat/IcbcPay/insuranceInfo',//保险资料提交页
	//申请指南
	'application' => 'wechat/Index/application',
	//缴费指南
	'payment' => 'wechat/Index/payment',
	//常见问题
	'commonProblem' => 'wechat/Index/commonProblem',
    //活动-调查问卷
	'saveCollection' => 'wechat/Users/saveCollection',


];
